{% load i18n %}
<!DOCTYPE html>
<html lang="en">

<head>

	<meta charset="UTF-8">
	<title>{{ APP_NAME }} | {{ RUN_VER_NAME }}</title>
    <script>
		/* 全局变量 */
        var RUN_VER = '{{RUN_VER}}';
        var SITE_URL = '{{SITE_URL}}';
        var BK_STATIC_URL = '{{BK_STATIC_URL}}';
        var BK_DOC_URL = '{{BK_DOC_URL}}'
        var FEEDBACK_URL = '{{FEEDBACK_URL}}'
        var USERNAME = '{{USERNAME}}';
        var BK_PAAS_HOST = '{{BK_PAAS_HOST}}';
        var BK_CC_HOST = '{{BK_CC_HOST}}';
        var BK_JOB_HOST = '{{BK_JOB_HOST}}';
        var BK_IAM_SAAS_HOST = '{{BK_IAM_SAAS_HOST}}';
        var BK_IAM_APP_CODE = '{{BK_IAM_APP_CODE}}';
        var BK_IAM_APPLY_URL = '{{BK_IAM_APPLY_URL}}';
        var BK_USER_MANAGE_HOST = '{{BK_USER_MANAGE_HOST}}';
        var BK_PLUGIN_DEVELOP_URL = '{{BK_PLUGIN_DEVELOP_URL}}'
        // 隐藏头部，目前需要嵌入到其他 APP 作为 iframe 子页面
        var HIDE_HEADER = {{HIDE_HEADER}};
        // 用户身份：管理员
		var IS_SUPERUSER = {{IS_SUPERUSER}};
        // 用户身份： 职能化
        var IS_FUNCTOR = {{IS_FUNCTOR}};
        // 用户身份： 审计员
        var IS_AUDITOR = {{IS_AUDITOR}};
        // 当前时区
        var TIMEZONE = '{{PROJECT_TIMEZONE}}';
        /* 局部变量 */
        // 首页会返回默认项目ID
        var DEFAULT_PROJECT_ID = '{{ DEFAULT_PROJECT_ID | default:"" }}';
        // APP 内打开或者轻应用内打开
        var VIEW_MODE = '{{view_mode | default:"app"}}';
        // 轻应打开时的轻应用ID
        var APP_ID = '{{app_id | default:"0"}}';
        // 是否开启导入 V1 模板的入口
        var IMPORT_V1_FLAG ={{import_v1_flag}};
        var RSA_PUB_KEY = '{{RSA_PUB_KEY}}';
        var ASYMMETRIC_CIPHER_TYPE = '{{ASYMMETRIC_CIPHER_TYPE}}';
        var ASYMMETRIC_PUBLIC_KEY = '{{ASYMMETRIC_PUBLIC_KEY}}';
        var ASYMMETRIC_PREFIX = '{{ASYMMETRIC_PREFIX}}';
        var APP_CODE = '{{APP_CODE}}';
        var FILE_UPLOAD_ENTRY = '{{FILE_UPLOAD_ENTRY}}';
        var MEMBER_SELECTOR_DATA_HOST = '{{MEMBER_SELECTOR_DATA_HOST}}';
        var MAX_NODE_EXECUTE_TIMEOUT = {{MAX_NODE_EXECUTE_TIMEOUT}};
        var BK_DOMAIN = '{{BK_DOMAIN}}';
        var BK_PAAS_ESB_HOST = '{{BK_PAAS_ESB_HOST}}'
        var TASK_LIST_STATUS_FILTER_DAYS = {{TASK_LIST_STATUS_FILTER_DAYS}}
        var LOGIN_URL = '{{LOGIN_URL}}'
        var BK_PAAS_SHARED_RES_URL = '{{BK_PAAS_SHARED_RES_URL}}'
        var APP_NAME = '{{APP_NAME}}'
        var RUN_VER_NAME = '{{RUN_VER_NAME}}'
        var ENABLE_TEMPLATE_MARKET = {{ENABLE_TEMPLATE_MARKET}}
        var TEMPLATE_MARKET_HOST = '{{TEMPLATE_MARKET_HOST}}'
        var TEMPLATE_MARKET_DOC_URL = '{{TEMPLATE_MARKET_DOC_URL}}'
        var PERIODIC_TASK_SHORTEST_TIME = {{PERIODIC_TASK_SHORTEST_TIME}}
        // 是否开启通知中心
        var ENABLE_NOTICE_CENTER = {{ENABLE_NOTICE_CENTER}}
        function getCookie(name) {
            var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)");
            return (arr = document.cookie.match(reg)) ? unescape(arr[2]) : null;
        }
    </script>
	<link href="{{STATIC_URL}}core/images/bk_sops.png" rel="shortcut icon" type="image/x-icon">
</head>

<body>
	<div id="root"></div>
	<script type="text/javascript" src="{{SITE_URL}}jsi18n/gcloud/"></script>
	<script type="text/javascript" src="{{STATIC_URL}}core/js/paas_api.js?v={{STATIC_VERSION}}"></script>
</body>

</html>
